package com.vegetable.modules.service.inbound;

import com.baomidou.mybatisplus.extension.service.IService;
import com.vegetable.common.utils.PageUtils;
import com.vegetable.common.utils.R;
import com.vegetable.modules.entity.inbound.OtherDelivery;

import java.util.Map;

/**
 * <p>
 * 其他入库表 服务类
 * </p>
 *
 * @author wangruijie
 * @since 2024-03-11
 */
public interface IOtherDeliveryService extends IService<OtherDelivery> {

    /**
     * 其他入库列表查询
     * @param params
     * @return
     */
    PageUtils queryPage(Map<String, Object> params);

    /**
     * 详情其他入库
     * @param id null
     * @return R
     * @author wrj
     * @since 2024/3/7 下午4:35
     */
    R detailOtherDelivery(Long id);

    /**
     * 新增其他入库
     * @param otherDelivery null
     * @return R
     * @author wrj
     * @since 2024/3/7 下午4:35
     */
    R saveOtherDelivery(OtherDelivery otherDelivery) throws Exception;

    /**
     * 提交其他入库
     * @param otherDelivery null
     * @return R
     * @author wrj
     * @since 2024/3/7 下午4:35
     */
    R submitOtherDelivery(OtherDelivery otherDelivery) throws Exception;

    /**
     * 删除其他入库
     * @param id null
     * @return R
     * @author wrj
     * @since 2024/3/7 下午4:35
     */
    R deleteOtherDelivery(Long id) throws Exception;
}
